import * as api from '../api/api'
export function save(postData) {
  return api.post('/wiseman/save', postData)
}

export function removeById(id) {
  return api.post('/wiseman/remove-by-id', {
    id
  })
}

export function update(postData) {
  return api.post('/wiseman/update', postData)
}

export function list(params) {
  return api.post('/wiseman/list', params)
}

export function changePwd({
  id,
  newPwd
}) {
  return api.post('/wiseman/change-pwd', {
    id,
    newPwd
  })
}
export function listAll() {
  return api.post('/wiseman/list-all')
}
